package com.one.controller;


import com.one.entity.GridProvince;
import com.one.service.IGridProvinceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/gridProvince")
@Api(tags="省份相关接口")
public class GridProvinceController {

	@Autowired
	private IGridProvinceService gridProvinceService;
	
	/****************** neps 工程 ********************/
	@PostMapping("/listGridProvinceAll")
	@ApiOperation(value = "查询全部省份信息")
	public List<GridProvince> listGridProvinceAll() {
		log.info("查询全部省份信息请求：{}");
		return gridProvinceService.listGridProvinceAll();
	}
	/****************** neps 工程 ********************/
}
